using Engine.Graphics;
using GameEntitySystem;

namespace SCIENEW {
    public class BulletItem : FlatItem {
        public float ProjectilePower, ExplosionPressure;
        public Texture2D Texture;

        public BulletItem(string id, Texture2D texture, int textureSlot, float projectilePower, float explosionPressure, float size = 1f) : base(id, textureSlot, size) {
            ProjectilePower = projectilePower;
            ExplosionPressure = explosionPressure;
            Texture = texture;
        }

        public override string GetCategory(int value) => "Weapons";

        public override float GetProjectilePower(int value) => ProjectilePower;

        public override float GetExplosionPressure(int value) => ExplosionPressure;

        public override Texture2D GetTexture() => Texture;

        public override ItemBehavior[] GetBehaviors(Project project) => [new ImpactExplosivesItemBehavior(project)];
    }
}